package com.cr.business.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 行政区划信息对象 tb_region
 * 
 * @author tang
 * @date 2025-08-22
 */
public class TbRegion
{

    /** $column.columnComment */
    private Long id;

    /** 地区名 */
    private String name;

    /** 类型（1：省级，2：市级，3：区县级，4：镇/街道级，5：村级） */
    private Integer type;

    /** 区划代码 */
    private String agencyId;

    /** 上级代码 */
    private String parentAgency;

    /** 是否开通（0：未开通，1：已开通） */
    private Integer isOpen;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }

    public void setAgencyId(String agencyId) 
    {
        this.agencyId = agencyId;
    }

    public String getAgencyId() 
    {
        return agencyId;
    }

    public void setParentAgency(String parentAgency) 
    {
        this.parentAgency = parentAgency;
    }

    public String getParentAgency() 
    {
        return parentAgency;
    }

    public void setIsOpen(Integer isOpen) 
    {
        this.isOpen = isOpen;
    }

    public Integer getIsOpen() 
    {
        return isOpen;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("type", getType())
            .append("agencyId", getAgencyId())
            .append("parentAgency", getParentAgency())
            .append("isOpen", getIsOpen())
            .toString();
    }
}
